import request from '@/utils/request'

export const getPexelsList = (data) => {
  return request({
    url: '/pexels/list',
    method: 'get',
    params: data
  })
}
// 请求历史记录
export const getHint = (q) => {
  return request({
    url: '/pexels/hint',
    method: 'get',
    params: { q }
  })
}
// 热门精选
export const getThemes = () => {
  return request({
    url: '/pexels/themes',
    method: 'get'
  })
}
// 详情
export const getDetails = (id) => {
  return request({
    url: `/pexels/${id}`,
    method: 'get'
  })
}
